package com.rightsidetech.system.service;

import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.commom.service.IService;
import com.rightsidetech.system.dtos.request.*;
import com.rightsidetech.system.dtos.request.store.StoreAppBackReq;
import com.rightsidetech.system.dtos.response.LoginAddResp;
import com.rightsidetech.system.dtos.response.LoginResp;

/**
 * @Author: yhr
 * @Date: 2021-10-28 14:44
 */
public interface SysAgentLoginService extends IService<LoginResp,String> {
    ResponseData<LoginResp> loginAdmin(LoginAdminReq req,String ip);

    ResponseData<LoginAddResp> loginApp(LoginAppReq loginReq,String ip);

    ResponseData<LoginAddResp> loginCode(LoginCodeReq loginReq,String ip) throws Exception;

    ResponseData logout(String token);

    ResponseData updatePwd(UpdatePasswordReq req);

    ResponseData register(RegisterReq req);

    ResponseData back(StoreAppBackReq req);
}
